<!DOCTYPE html>
<html>
<!--
Copyright 2006 The Closure Library Authors. All Rights Reserved.

Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
-->
 <head>
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <title>
   Closure Unit Tests - goog.net.IframeIo
  </title>
  <script src="../base.js">
  </script>
  <script>
    goog.require('goog.net.IframeIoTest');
  </script>
<style>
  html, body {
    width: 100%;
    height: 100%;
    overflow:hidden;
  }

  #log {
    position: absolute;
    top: 0px;
    width: 50%;
    right: 0%;
    height: 100%;
    overflow: auto;
  }

  p, input {
    font-family: verdana, helvetica, arial, sans-serif;
    font-size: small;
    margin: 0px;
  }

  input {
    font-family: verdana, helvetica, arial, sans-serif;
    font-size: x-small;
  }

  i {
    font-size: 85%;
  }
</style>
</head>
<body>
<p>
  <b>IframeIo manual tests:</b><br><br>
  <i>All operations should have no effect on history.</i><br>
  <br>
  <i>These tests require the ClosureTestServer<br>
  to be running with the IframeIoTestServlet.</i><br>
<br></p>

<p>
  <a href="javascript:simpleGet()">Simple GET</a><br>
  <a href="javascript:simplePost()">Simple POST</a><br>
  <a href="javascript:jsonEcho('GET')">JSON echo (get)</a><br>
  <a href="javascript:jsonEcho('POST')">JSON echo (post)</a><br>
  <a href="javascript:abort()">Test abort</a>
</p>
<form id="uploadform" action="/iframeio/upload" enctype="multipart/form-data" method="POST">
  <p><a href="javascript:sendFromForm()">Upload</a> <input name="userfile" type="file"> (big files should fail)</p>
</form>
<p>
  <a href="javascript:incremental()">Incremental results</a><br>
  <a href="javascript:redirect1()">Redirect (google.com)</a><br>
  <a href="javascript:redirect2()">Redirect (/iframeio/ping)</a><br>
  <a href="javascript:localUrl1()">Local request (Win path)</a><br>
  <a href="javascript:localUrl2()">Local request (Linux path)</a><br>
  <a href="javascript:badUrl()">Out of domain request</a><br>
  <a href="javascript:getServerTime(false)">Test cache</a> (Date should stay the same for subsequent tests)<br>
  <a href="javascript:getServerTime(true)">Test no-cache</a><br>
  <a href="javascript:errorGse404()">GSE 404 Error</a><br>
  <a href="javascript:errorGfe()">Simulated GFE Error</a><br>
  <a href="javascript:errorGmail()">Simulated Gmail Server Error</a><br><br>
</p>
<form id="testfrm" action="/iframeio/jsonecho" method="POST">
  <p><b>Comprehensive Form Post Test:</b><br>
  <input name="textinput" type="text" value="Default"> Text Input<br>
  Text Area<br>
  <textarea name="textarea">Default</textarea><br>
  <input name="checkbox1" type="checkbox" checked="checked"> Checkbox, default on<br>
  <input name="checkbox2" type="checkbox"> Checkbox, default off<br>
  Radio: <input name="radio" type="radio" value="Default" checked="checked"> Default,
  <input name="radio" type="radio" value="Foo"> Foo,
  <input name="radio" type="radio" value="Bar"> Bar<br>
  <select name="select">
    <option>One</option>
    <option>Two</option>
    <option selected="selected">Three (Default)</option>
    <option>Four</option>
    <option>Five</option>
  </select><br>
  <select name="selectmultiple">
    <option>One</option>
    <option selected="selected">Two (Default checked)</option>
    <option selected="selected">Three (Default checked)</option>
    <option>Four</option>
  </select>
  <a href="javascript:postForm()">Submit this form</a>
  </p>
</form>
<p><br><br>
TODO(pupius):<br>
- Local timeout
</p>
<div id="log"></div>
 </body>
</html>
